<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>假条添加</h1>
<form action="" method="post">
    {% csrf_token %}
    <table border="1">
        <tr>
            <td>学生姓名</td>
            <td><input type="text" name="stu_name"></td>
        </tr>
        <tr>
            <td>假条事由</td>
            <td><input type="text" name="context"></td>
        </tr>
        <tr>
            <td>请假时间</td>
            <td><input type="date" name="createtime"></td>
        </tr>
        <tr>
            <td>请假类型</td>
            <td>
                <select name="eid" id="">
                    {% for i in listl %}
                        <option value="{{ i.id }}">{{ i.tname }}</option>
                    {% endfor %}

                </select>
            </td>
        </tr>
        <tr>
           <td colspan="2">
               <input type="submit" value="添加">
           </td>
        </tr>

    </table>
</form>
</body>
</html>